import Mock from "mockjs";
import homeApi from "./mockServeData/home"
import userApi from "./mockServeData/user"
import permissionApi from './mockServeData/permission'

Mock.mock('/api/home/getData', homeApi.getStatisticalData)

// 用正则来匹配地址，上述地址也可以
Mock.mock(/user\/add/, 'post', userApi.createUser)
Mock.mock(/user\/edit/, 'post', userApi.updateUser)

Mock.mock(/user\/getUser/, 'get', userApi.getUserList)
Mock.mock(/user\/del/, 'get', userApi.deleteUser)
Mock.mock(/permission\/getMenu/,'post', permissionApi.getMenu)